package com.zgkxzx.设计模式.单例;

/**
 * 创建者   zgkxzx
 * 创建日期 2018/5/10.
 * 功能描述 懒汉式
 */
public class SingleInstance4 {


    private static class LazeHoler {
        private static final SingleInstance4 INSTANCE = new SingleInstance4();
    }


    private SingleInstance4() {

    }

    public synchronized static SingleInstance4 getInstance() {
        return LazeHoler.INSTANCE;
    }
}
